:root {
    --bs-primary: #023f88;
    --bs-primary-rgb: 2, 63, 136;
    --bs-font-sans-serif: 'Inter', sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-color: #334155;
}

html {
    overflow-x: hidden;
    /*outline: 1px solid red !important;*/
}

body {
    font-family: var(--bs-font-sans-serif), Inter, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--bs-body-color);
    background-color: #ffffff;
}

.navbar {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    background-color: #ffffff;
}

.nav-link {
    color: #475569 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1.25rem !important;
    transition: color 0.15s ease-in-out;
}

.nav-link:hover, .nav-link.active {
    color: var(--bs-primary) !important;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    font-weight: 500;
    padding: 0.75rem 1.75rem;
    border-radius: 0.4rem;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #012b5e;
    border-color: #012b5e;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(2, 63, 136, 0.2);
}

.btn-outline-secondary {
    border-color: #e2e8f0;
    color: #475569;
    font-weight: 500;
    padding: 0.75rem 1.75rem;
    border-radius: 0.4rem;
    background-color: #ffffff;
    transition: all 0.2s;
}

.btn-outline-secondary:hover {
    background-color: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.badge-soft-primary {
    background-color: #e6eff7;
    color: var(--bs-primary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 50rem;
}

.hero-title {
    font-weight: 700;
    color: #1e293b;
    line-height: 1.15;
    font-size: 3.25rem;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

.hero-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #64748b;
}

.card {
    transition: all 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025) !important;
}

.icon-box {
    width: 54px;
    height: 54px;
    background-color: #f1f6fc;
    color: var(--bs-primary);
    border-radius: 0.75rem;
}

.transition-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.transition-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1) !important;
}

#page-home #clients {
    text-align: center; }
#page-home #clients .cell-holder {
    display: inline-block !important; }
#page-home #clients .cell-holder .cell {
    display: table;
    background: white !important;
    padding: 15px;
    margin: 15px;
    height: 90px;
    width: 120px; }
@media (min-width: 480px) {
    #page-home #clients .cell-holder .cell {
        height: 50px;
        width: 100px; } }
#page-home #clients .cell-holder .cell .vertical {
    display: table-cell;
    vertical-align: middle; }
#page-home #clients .cell-holder .cell .vertical div {
    text-align: center; }
#page-home #clients .cell-holder .cell .vertical div img {
    max-width: 90px;
    max-height: 60px;
    -webkit-filter: grayscale(1);
    filter: grayscale(1); }
@media (min-width: 480px) {
    #page-home #clients .cell-holder .cell .vertical div img {
        max-width: 170px;
        max-height: 100px; } }

.flow-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background: transparent;
    margin-top: 1.5rem;
    user-select: none;
}

.flow-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.flow-path {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 3;
    stroke-dasharray: 6 6;
}

.flow-dot {
    opacity: 0;
    animation: fadeInOut 2.5s infinite;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.fc-node {
    position: absolute;
    z-index: 2;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.35rem;
    font-weight: bold;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
}

.fc-icon.large {
    width: 76px;
    height: 76px;
    font-size: 2.25rem;
    border-radius: 16px;
}

.fc-icon.wide {
    width: 86px;
    height: 50px;
    border-radius: 12px;
    font-size: 1.5rem;
}

.fc-label {
    margin-top: 8px;
    font-size: 0.70rem;
    color: #475569;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.bg-red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.bg-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.bg-pink {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.bg-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.bg-darkblue {
    background: linear-gradient(135deg, #1e3a8a, #172554);
}

.bg-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.bg-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.fc-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #eab308;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 576px) {
    .fc-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .fc-icon.large {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        border-radius: 12px;
    }

    .fc-icon.wide {
        width: 66px;
        height: 40px;
        font-size: 1.25rem;
    }

    .fc-label {
        font-size: 0.6rem;
        margin-top: 4px;
    }

    .fc-badge {
        width: 16px;
        height: 16px;
        font-size: 0.5rem;
        top: -4px;
        right: -4px;
    }
}
.core-animation-container {
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    padding: 1rem;
    position: relative;
}

.core-scene {
    width: 140px;
    height: 140px;
    position: relative;
    transform-style: preserve-3d;
    /* Standard Isometric Projection */
    transform: rotateX(-30deg) rotateY(-45deg);
    animation: sceneWobble 6s infinite ease-in-out alternate;
}

@keyframes sceneWobble {
    0% {
        transform: rotateX(-30deg) rotateY(-45deg) translateY(0);
    }
    100% {
        transform: rotateX(-30deg) rotateY(-45deg) translateY(-15px);
    }
}

.cube-face {
    position: absolute;
    width: 140px;
    height: 140px;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.15rem;
    backface-visibility: hidden;
    border: 2px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.15);
}

.face-top {
    background: #034fac;
    animation: assembleTop 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.face-front {
    background: #023f88;
    animation: assembleFront 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s forwards;
    opacity: 0;
}

.face-right {
    background: #012a5c;
    animation: assembleRight 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
    opacity: 0;
}

@keyframes assembleTop {
    0% {
        transform: rotateX(90deg) translateZ(300px);
        opacity: 0;
    }
    100% {
        transform: rotateX(90deg) translateZ(70px);
        opacity: 1;
    }
}

@keyframes assembleFront {
    0% {
        transform: rotateY(0deg) translateZ(300px);
        opacity: 0;
    }
    100% {
        transform: rotateY(0deg) translateZ(70px);
        opacity: 1;
    }
}

@keyframes assembleRight {
    0% {
        transform: rotateY(90deg) translateZ(300px);
        opacity: 0;
    }
    100% {
        transform: rotateY(90deg) translateZ(70px);
        opacity: 1;
    }
}

.module-tile {
    position: absolute;
    left: calc(50% + var(--tx));
    top: calc(50% + var(--ty));
    padding: 0.6rem 1.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #023f88;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    z-index: 10;

    animation: tileAssemble 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards var(--delay),
    tileWobble calc(3s + var(--delay) * 0.5) ease-in-out infinite alternate var(--delay);
}

@keyframes tileAssemble {
    0% {
        opacity: 0;
        filter: blur(5px);
        transform: translate(-50%, calc(-50% + 40px)) scale(0.5);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes tileWobble {
    0% {
        transform: translate(-50%, -50%);
    }
    100% {
        transform: translate(-50%, calc(-50% - 15px));
    }
}

.pain-point {
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important;
}

.platform-container {
    transition: transform 0.8s ease-in-out;
}

.tile {
    position: absolute;
    width: 100px;
    height: 100px;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.tile-face {
    position: absolute;
    width: 100.2px;
    height: 100.2px;
    transition: all 0.4s;
    backface-visibility: hidden;
}

.tile-face.top {
    transform: translateZ(20px);
}

.tile-face.top-slot {
    transform: translateZ(2px);
}

.tile-face.side-l {
    transform: rotateX(-90deg) translateZ(50px);
    height: 20px;
    width: 100px;
    top: 90px;
}

.tile-face.side-r {
    transform: rotateY(90deg) translateZ(50px);
    width: 20px;
    height: 100px;
    left: 90px;
}

.tile-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2.2rem;
}

.empty-slot {
    animation: slotFade 5s linear infinite;
}

@keyframes slotFade {

    0%,
    25% {
        opacity: 1;
    }

    30%,
    80% {
        opacity: 0;
    }

    85%,
    100% {
        opacity: 1;
    }
}

.custom-precision-piece {
    animation: precisionSnap 5s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    pointer-events: none;
}

@keyframes precisionSnap {
    0% {
        opacity: 0;
        transform: translateZ(400px);
    }

    5% {
        opacity: 1;
        transform: translateZ(400px);
    }

    25%,
    85% {
        opacity: 1;
        transform: translateZ(0.2px);
    }

    95%,
    100% {
        opacity: 0;
        transform: translateZ(0.2px);
    }
}

.circuit-layer {
    position: absolute;
    width: 210px;
    height: 210px;
    transform: translateZ(21.5px);
    opacity: 0;
    pointer-events: none;
}

.line {
    position: absolute;
    background: #0ea5e9;
    box-shadow: 0 0 10px #0ea5e9;
}

.l1 {
    top: 105px;
    left: 0;
    width: 0;
    height: 2px;
    animation: lineDraw 5s linear infinite;
}

.l2 {
    top: 0;
    left: 105px;
    width: 2px;
    height: 0;
    animation: lineDrawY 5s linear infinite;
}

.l3 {
    top: 105px;
    left: 105px;
    width: 105px;
    height: 105px;
    border: 2px solid #0ea5e9;
    opacity: 0;
    border-radius: 2px;
    animation: glowPulse 5s linear infinite;
}

@keyframes lineDraw {

    0%,
    25% {
        width: 0;
    }

    35% {
        width: 210px;
    }

    85% {
        opacity: 1;
    }

    95% {
        opacity: 0;
    }
}

@keyframes lineDrawY {

    0%,
    25% {
        height: 0;
    }

    35% {
        height: 210px;
    }

    85% {
        opacity: 1;
    }

    95% {
        opacity: 0;
    }
}

@keyframes glowPulse {

    0%,
    35% {
        opacity: 0;
    }

    45%,
    85% {
        opacity: 0.6;
    }

    95% {
        opacity: 0;
    }
}

.custom-precision-piece:hover .tile-face.top {
    filter: brightness(1.2);
}

.unified-shadow {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 210px;
    height: 210px;
    background: rgba(0, 0, 0, 0.4);
    filter: blur(20px);
    transform: translateZ(-20px);
}

.platform-container {
    animation: sceneIdle 10s ease-in-out infinite;
}

@keyframes sceneIdle {

    0%,
    100% {
        transform: translate(-50%, -55%) rotateX(60deg) rotateZ(45deg);
    }

    50% {
        transform: translate(-50%, -52%) rotateX(58deg) rotateZ(43deg);
    }
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 50px;
    left: 50%;
    width: 2px;
    background-color: #cbd5e1;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.5rem;
    position: relative;
    width: 100%;
}

.timeline-col-content {
    width: calc(50% - 45px);
}

.timeline-col-empty {
    width: calc(50% - 45px);
}

.timeline-center-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50px;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px #f8fafc;
    color: white;
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
        top: 0;
        bottom: 0;
    }

    .timeline-row {
        align-items: flex-start;
        margin-bottom: 2.5rem;
    }

    .timeline-center-icon {
        left: 30px;
        top: 30px;
        box-shadow: 0 0 0 4px #f8fafc;
    }

    .timeline-col-content {
        width: 100%;
        padding-left: 80px;
        text-align: left !important;
    }

    .timeline-col-empty {
        display: none;
    }
}

.timeline-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    text-align: left;
}

.tl-badge {
    display: inline-block;
    padding: 0.4rem 1.25rem;
    border-radius: 50rem;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.milestone-alert {
    background-color: #fffbeb;
    border: 1px solid #fef08a;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.milestone-title {
    color: #b45309;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.25rem;
}

.tag-pill {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 0.3rem;
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}